//
// Created by JYL on 2024-03-11.
//

#ifndef OS_TEST_I2C_H
#define OS_TEST_I2C_H

#include "main.h"

void I2CStart(void);
void I2CStop(void);
unsigned char I2CWaitAck(void);
void I2CSendAck(void);
void I2CSendNotAck(void);
void I2CSendByte(unsigned char cSendByte);
unsigned char I2CReceiveByte(void);
void I2CInit(void);

//

void AT24C02_Write(uint8_t addr,uint8_t date);
uint8_t AT24C02_Read(uint8_t addr);

#endif //OS_TEST_I2C_H
